/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.validator;
import com.bayu.services.entity.ExchangeCurrency;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import org.springframework.util.StringUtils;
import org.springframework.validation.Errors;



/**
 *
 * @author Bayu
 */
public class ExchangeCurrencyValidator {
    public void validate(ExchangeCurrency exchangeCurrency, Errors errors){
     /*
        if (errors.hasFieldErrors("date")) {

        DateFormat formarter = new SimpleDateFormat("yy-MM-dd");
            Date tgl = exchangeCurrency.getDate();
            try {
                tgl = formarter.parse(date);
            } catch (ParseException ex) {
                Logger.getLogger(ExchangeCurrencyFormController.class.getName()).log(Level.SEVERE, null, ex);
            }
      */
    }
}
